#pragma once

#include <string>
#include <vector>
#include <cstdint>

struct Status {
    int modid;
    int cmdid;
    uint32_t ip;
    int port;
    uint32_t caller;
    int success_count;
    int error_count;
    int64_t timestamp;
    bool is_overload;
    
    static std::vector<Status> getAll();
    static bool add(int modid, int cmdid, uint32_t caller, uint32_t ip, int port);
}; 